import { request } from 'umi';

export async function fakeSubmitForm(params: any) {
  return request('/api/bsDisease/save', {
    method: 'POST',
    data: params,
  });
}

export async function queryDetail(params: any) {
  return request('/api/bsDisease/' + params.id, {
    method: 'get',
    data: params,
  });
}

export async function list(params: any) {
  return request('/api/bsDisease/page', {
    method: 'POST',
    data: params,
  });
}

/** 修改 PUT /api/ */
export async function update(params: any) {
  return request('/api/bsDisease/updateById', {
    method: 'PUT',
    data: params,
  });
}
/** 删除 DELETE /api/ */
export async function remove(data: { key: number[] }, options?: { [key: string]: any }) {
  return request<Record<string, any>>('/api/bsDisease/' + data.key, {
    data,
    method: 'DELETE',
    ...(options || {}),
  });
}
